package u13.eje10;

import java.awt.Graphics;
import java.awt.Toolkit;

import javax.swing.JPanel;

public class Lienzo extends JPanel{
	private int x;
	
	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public void paint(Graphics g){
		//int anchoPantalla=Toolkit.getDefaultToolkit().getScreenSize().width;
		//int altoPantalla=Toolkit.getDefaultToolkit().getScreenSize().height;
		//g.drawLine(anchoPantalla/2-300, altoPantalla/2, anchoPantalla/2+300, altoPantalla/2);
		//g.drawLine(anchoPantalla/2, altoPantalla/2-300, anchoPantalla/2, altoPantalla/2+300);
		//g.drawOval(anchoPantalla/2-150, altoPantalla/2-150, 300, 300);
		g.drawOval(x,100,100,100);
	}
}
